class CreateContatti < ActiveRecord::Migration
  def self.up
    create_table :contatti do |t|
    t.string   "name"
    t.string   "mansione"
    t.string   "telefono"
    t.string   "cellulare"
    t.string   "fax"
    t.string   "mail"
    t.integer  "created_by"
    t.integer  "updated_by"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.datetime "deleted_at"

    t.references :contatti_ref, :polymorphic => true

      t.timestamps
    end
  end

  def self.down
    drop_table :contatti
  end
end
